| Shortcut | Action |
|---|---|
| Ctrl + Shift + P / F1 | Show Command Palette |
|
Command Palette Demo
The Command Palette gives you access to all of VS Code's functionality. Try it now:
|
|
| Ctrl + P | Quick Open (Go to File) |
|
Quick Open Demo
Quickly navigate between files in your project:
|
|
| Ctrl + Shift + N | New window/instance |
| Ctrl + Shift + W | Close window/instance |
| Ctrl + , | Open User Settings |
|
Settings Demo
VS Code's settings are very powerful:
|
|
| Ctrl + K Ctrl + S | Open Keyboard Shortcuts |
| Ctrl + N | New file |
| Ctrl + S | Save file |
| Ctrl + K S | Save all |
| Shortcut | Action |
|---|---|
| Ctrl + X / Ctrl + C | Cut/Copy line (no selection) |
|
Line Operations Demo
Work with entire lines efficiently:
|
|
| Alt + ↑ / ↓ | Move line up/down |
|
Move Lines Demo
Rearrange code quickly:
|
|
| Shift + Alt + ↑ / ↓ | Copy line up/down |
| Ctrl + Shift + K | Delete line |
| Ctrl + Enter / Ctrl + Shift + Enter | Insert line below/above |
| Ctrl + Shift + \\ | Jump to matching bracket |
| Ctrl + ] / [ | Indent/Outdent line |
| Home / End | Go to line start/end |
| Ctrl + Home / End | Go to file start/end |
| Ctrl + ↑ / ↓ | Scroll line up/down |
| Alt + Page Up / Page Down | Scroll page up/down |
| Folding: Ctrl + Shift + [ / ] | Fold/Unfold region |
| Ctrl + K Ctrl + [ / ] | Fold/Unfold subregions |
| Ctrl + K Ctrl + 0 / J | Fold all / Unfold all |
| Comments: Ctrl + K Ctrl + C / U | Add/Remove line comment |
| Ctrl + / | Toggle line comment |
| Shift + Alt + A | Toggle block comment |
| Alt + Z | Toggle word wrap |
| Shortcut | Action |
|---|---|
| Ctrl + F | Find |
|
Find Demo
Powerful search capabilities:
|
|
| Ctrl + H | Replace |
| F3 / Shift + F3 | Find next / previous |
| Alt + Enter | Select all matches |
| Ctrl + D | Add selection to next find match |
| Ctrl + K D | Move last selection to next find match |
| Alt + C / R / W | Toggle case / regex / whole‑word search |
| Shortcut | Action |
|---|---|
| Alt + click | Insert cursor |
|
Multi-Cursor Demo
Edit multiple places at once:
|
|
| Ctrl + Alt + ↑ / ↓ | Add cursor above/below |
| Ctrl + U | Undo last cursor operation |
| Shift + Alt + I | Insert cursor at end of each selected line |
| Ctrl + L | Select current line |
| Ctrl + Shift + L | Select all occurrences of current selection |
| Ctrl + F2 | Select all occurrences of current word |
| Shift + Alt + → / ← | Expand / Shrink selection |
| Alt + drag / Ctrl + Shift + Alt + arrows | Box (column) selection |
| Shortcut | Action |
|---|---|
| Ctrl + Space / Ctrl + I | Trigger suggestion / IntelliSense |
|
IntelliSense Demo
VS Code's powerful code completion:
|
|
| Ctrl + Shift + Space | Parameter hints |
| Shift + Alt + F | Format document |
| Ctrl + K Ctrl + F | Format selection |
| F12 | Go to Definition |
| Alt + F12 | Peek Definition |
| Ctrl + K F12 | Open Definition to the side |
| Ctrl + . | Quick Fix |
| Shift + F12 | Show References |
| F2 | Rename symbol |
| Ctrl + K X | Trim trailing whitespace |
| Ctrl + K M | Change file language |
| Shortcut | Action |
|---|---|
| Ctrl + F4 / Ctrl + W | Close editor |
| Ctrl + K F | Close folder |
| Ctrl + \\ | Split editor |
|
Split Editor Demo
Work with multiple files side by side:
|
|
| Ctrl + 1 / 2 / 3 | Focus 1st / 2nd / 3rd group |
| Ctrl + K ← / → | Focus previous/next group |
| Ctrl + Shift + Page Up / Page Down | Move editor left/right |
| Ctrl + K ← / → | Move active editor group |
| Shortcut | Action |
|---|---|
| F11 | Toggle Full Screen |
| Shift + Alt + 0 | Toggle editor layout (horizontal/vertical) |
| Ctrl + = / - | Zoom in/out |
| Ctrl + B | Toggle Sidebar |
| Ctrl + Shift + E / F / G / D / X | Explorer / Search / Source Control / Run & Debug / Extensions |
| Ctrl + Shift + H | Replace in files |
| Ctrl + Shift + J | Toggle search details |
| Ctrl + Shift + U | Show Output panel |
| Ctrl + Shift + V | Open Markdown preview |
| Ctrl + K V | Open Markdown preview to the side |
| Ctrl + K Z | Zen Mode (press Esc twice to exit) |
| Shortcut | Action |
|---|---|
| Ctrl + ` | Toggle integrated terminal |
|
Terminal Demo
VS Code's built-in terminal is powerful:
|
|
| Ctrl + Shift + ` | Create new terminal |
| Ctrl + C / Ctrl + V | Copy / Paste (terminal) |
| Ctrl + ↑ / ↓ | Scroll up/down |
| Shift + Page Up / Page Down | Scroll page up/down |
| Ctrl + Home / End | Scroll to top/bottom |
| Shortcut | Action |
|---|---|
| F5 | Start/Continue |
|
Debugging Demo
VS Code's debugging capabilities:
|
|
| Shift + F5 | Stop |
| F9 | Toggle breakpoint |
| F10 | Step over |
| F11 | Step into |
| Shift + F11 | Step out |
Note: Shortcuts reflect the default Windows keymap in VS Code (some may vary if you've customized bindings or use certain extensions).